﻿using System;

namespace AccelerateSensor.Console.Common
{
    public class NodeCommonAttributeInfo
    {
        public int SleepTimeSec { get; set; }
        public int SendStatusIntervalMin { get; set; }
        public string PowerSource { get; set; }
        public int WorkMode { get; set; }
        public bool SyncEnable { get; set; }
        public double PowerVoltage { get; set; }
        public int NodeTemp { get; set; }
        public bool PowerSaving { get; set; }

        public override string ToString()
        {
            return $"NodeCommonAttribute:{Environment.NewLine}" +
                   $"SleepTimeSec: {SleepTimeSec}, SendStatusIntervalMin: {SendStatusIntervalMin}, " +
                   $"PowerSource: {PowerSource}, WorkMode: {WorkMode}, " +
                   $"SyncEnable: {SyncEnable}, PowerVoltage: {PowerVoltage}, " +
                   $"NodeTemp: {NodeTemp}, PowerSaving: {PowerSaving}.";
        }
    }
}
